<template>
  <div>
    <h2>TsNews</h2>
    <button @click="num++">{{ num }}</button>
  </div>
</template>
<script>
export default {
  data() {
    return {
      num: 0,
    }
  },
  activated() {
    console.log('TsNews activated');
  },
  // created() {
  //   console.log('TsNews created');
  // },
  deactivated() {
    console.log('TsNews deactivated');
  },
  // destroyed() {
  //   console.log('TsNews destroyed');
  // }
}
</script>